package com.xy.gateway.request.pay.handle;

/***********************************************************************
 * Module:  RequestParaStandart.java
 * Author:  ligh1
 * Purpose: Defines the Class RequestParaStandart
 ***********************************************************************/

import java.util.Map;
import java.util.Set;

import com.xy.gateway.exception.GateWayException;

/** @pdOid 3089df2d-01f8-4f73-8580-b61ee35ee9e3 */
public class RequestParaHandlerStandart extends RequestParaHandlerAbstract {

	/** @pdOid 39810263-fe38-4451-ac3f-e35a8583e5f3 */
	public java.lang.String genReqParaStr() throws GateWayException{
		Map<String, String> reqvalues = getReqParaValuesMap();

		Set<String> key = reqvalues.keySet();
		StringBuffer sb = new StringBuffer();
		for (String para : key) {
			sb.append(para).append("=").append(reqvalues.get(para));
			sb.append("&");
		}
		String ret = sb.toString();
		if (ret.endsWith("&")) {
			ret = ret.substring(0, ret.length() - 1);
		}
		return ret;
	}

	public RequestParaHandlerStandart(
			javax.servlet.http.HttpServletRequest req, String sid,String reqtype,String paytype) {
		super(req, sid,reqtype,paytype);
	}

}